import { httpForm } from '@/service/network.js'
import  { httpJson } from "@/service/network.js"


// 获取机构列表
export const getjigou = (data)=>{
  return  httpForm(
    '/platform/admin/getAccountList',
     data
  )

}
//添加机构
export const addjigou = (data)=>{
  return  httpForm(
    '/platform/admin/addAccount',
    data
  )
}
//编辑机构
export const editjigou =(data)=>{
    return  httpForm(
        '/platform/admin/editAccount',
        data
  )

}
//停用机构
export const offchare = (data)=>{
  return  httpForm(
    '/platform/admin/updateStatus',
    data
   )

}
//获取有权限的列表
export const getMenuList = (data) => {
  console.log(data);
  return  httpForm(
      '/platform/admin/jobs',
      data
  )
}
//获取门店列表
 export const  getshoplist =(data)=>{
  return  httpForm(
      '/platform/admin/getAccountShopLists',
      data
  )
 }
 //获取门店的支付详情
 export const  getshopzhifu =(data)=>{
  return  httpForm(
      '/platform/admin/showShopPayment',
      data
  )
 }
  // 门店的支付设置
 export const editzf = (data)=>{
   console.log(data)
  return  httpForm(
    '/platform/admin/saveShopPayment',
    data
   )
 }

 // 机构收费设置查询
 export  const  requiremerge = (data)=>{
  return  httpForm(
    '/platform/admin/accountFeeSet',
    data
   )
}
 // 机构收费设置
export  const  editcharge = (data)=>{
  console.log(data);
  return  httpForm(
    '/platform/admin/setaccountFeeSet',
    data
   )
}
//门店续费
export const setxufei = (data)=>{
  console.log(data)
  return  httpForm(
    'platform/admin/renewShop',
     data
   )
// platform/admin/renewSho
}

//获取地区
export const diqulist = ()=>{
  console.log(666);
  return  httpForm(
    '/platform/admin/getAreaList',
   )
}
// 所有获取机构
export const alljigoulist = (data)=>{
  console.log(data);
  return  httpForm(
    '/platform/admin/getAllAccountList',
    data
   )
}
//管理员日志
//  export const adminrz 













// //新增菜单
// export const addMenuList = (data) => {
//   return  httpForm(
//       '/admin.php/menu/add',
//       data
//   )
// }

// //编辑菜单
// export const editMenuList = (data) => {
//   return  httpForm(
//       '/admin.php/menu/edit',
//       data
//   )
// }

// //删除菜单
// export const delMenuList = (data) => {
//   return  httpForm(
//       '/admin.php/menu/delete',
//       data
//   )
// }

// //获取上级菜单
// export const getParentMenuList = (data) => {
//   return  httpForm(
//       '/admin.php/menu/menu',
//       data
//   )
// }

